﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/ViewMasterPage1.Master" Inherits="System.Web.Mvc.ViewPage<ComputerShopE3.Models.CASE>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>Thùng máy</title>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    
    <%--<% var article = (Article)ViewData["Article"]; %>--%>

    <h2>Tạo mới</h2>

    <%= Html.ValidationSummary() %>

    <% using (Html.BeginForm()) {%>

        <fieldset>
            <legend>Fields</legend>
            <%=ViewData["error"] %>
            <% if (null == ViewData["error"]) 
                   Html.RenderPartial("SAN_PHAM_Template");%>
<%--            <p>
                <label for="id">id:</label>
                <%= Html.TextBox("linhkien.id") %>
                <%= Html.ValidationMessage("id", "*") %>
            </p>--%>
            <p>
                <label for="KichThuoc">Kích thước:</label>
                <%= Html.TextBox("linhkien.KichThuoc")%>
                <%= Html.ValidationMessage("KichThuoc", "*") %>
            </p>
            <p>
                <label for="VatLieu">Vật liệu:</label>
                <%= Html.TextBox("linhkien.VatLieu")%>
                <%= Html.ValidationMessage("VatLieu", "*") %>
            </p>
            <p>
                <label for="HoTro">Hỗ trợ:</label>
                <%= Html.TextBox("linhkien.HoTro")%>
                <%= Html.ValidationMessage("HoTro", "*") %>
            </p>
            <p>
                <label for="Nguon">Nguồn:</label>
                <%= Html.TextBox("linhkien.Nguon")%>
                <%= Html.ValidationMessage("Nguon", "*") %>
            </p>
            <p>
                <label for="CongGiaoTiep">Cổng giao tiếp:</label>
                <%= Html.TextBox("linhkien.CongGiaoTiep")%>
                <%= Html.ValidationMessage("CongGiaoTiep", "*") %>
            </p>
            <p>
                <label for="KhongGianChua">Không gian chứa:</label>
                <%= Html.TextBox("linhkien.KhongGianChua")%>
                <%= Html.ValidationMessage("KhongGianChua", "*") %>
            </p>
            <p>
                <label for="MoRong">Mở rộng:</label>
                <%= Html.TextBox("linhkien.MoRong")%>
                <%= Html.ValidationMessage("MoRong", "*") %>
            </p>
            <p>
                <label for="TanNhiet">Tản nhiệt:</label>
                <%= Html.TextBox("linhkien.TanNhiet")%>
                <%= Html.ValidationMessage("TanNhiet", "*") %>
            </p>
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%=Html.ActionLink("Trở lại dnah mục", "Index") %>
    </div>

</asp:Content>


<asp:Content ID="Content3" ContentPlaceHolderID="PersonalMenu" runat="server">
</asp:Content>

